<extend name="Public/baseConf" />
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-8">
	        <h2><if condition="ACTION_NAME eq 'add'">新增<else/>编辑</if>行为</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('Index/index')}">首页</a></li>
	            <li><a href="{:U('index')}">预约信息</a></li>
	            <li class="active">
	                <strong><if condition="ACTION_NAME eq 'add'">新增<else/>编辑</if>行为</strong>
	            </li>
	        </ol>
	    </div>	    
	    <div class="col-lg-4">
            <div class="title-action">
 				<button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal"><i class="fa fa-check"></i>保存</button>
	            <a class="btn btn-warning" type="submit" href="{:U('index')}"><i class="fa fa-reply"></i>返回</a>
            </div>
        </div>
	</div> 
</block>
<block name="body">
	<div class="row">
	    <div class="col-lg-12">
	        <div class="ibox float-e-margins">
	            <div class="ibox-title">
	                <h5>请在下表中填入信息<small></small></h5>
	                <div class="ibox-tools">
	                    <a class="collapse-link">
	                        <i class="fa fa-chevron-up"></i>
	                    </a>
	                </div>
	            </div>
	            <div class="ibox-content">
	                <form id="form" action="{:U('save')}" method="post" class="form-horizontal">
	                    <div class="form-group"><label class="col-sm-3 control-label">手机号<span class="check-tips">（输入手机号）</span></label>
	                        <div class="col-sm-9"><input readonly id="phone" name="phone" value="{$data.phone}" class="form-control" required="" type="text" ></div>
	                    </div>	
	                    <div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-3 control-label">座机号<span class="check-tips">（输入座机号）</span></label>
	                        <div class="col-sm-9"><input readonly id="landline" name="landline" value="{$data.landline}" class="form-control" required="" type="text" ></div>
	                    </div>
	                    <div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-3 control-label">预约类型</label>
	                        <div class="col-sm-9"><input readonly id="type" name="type" value="{$data.type}" class="form-control" required="" type="text" ></div>
	                    </div>	
	                    <div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-3 control-label">留言<span class="check-tips">（留言信息）</span></label>
	                       <div class="col-sm-9"> <textarea readonly class='form-control' name="message">{$data.message}</textarea>
	                       </div> 
	                    </div>
	                    <div class="hr-line-dashed"></div>	                    
	                    <div class="form-group"><label class="col-sm-3 control-label">记录<span class="check-tips">（记录信息）</span></label>
	                       <div class="col-sm-9"> <textarea class='form-control' name="remark">{$data.telrecord}</textarea>
	                       </div> 
	                    </div>
	                    <div class="hr-line-dashed"></div>
	                    
	                    <div class="form-group"><label class="col-sm-3 control-label">回电时间<span class="check-tips">（输入回电时间）</span></label>
	                        <div class="col-sm-9">
		                        <div class="input-group date">
	                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
	                                <input id="callbactime" name="callbactime" value="{$data.callbactime}" class="form-control" required="" type="text" >
	                            </div>
                            </div>
	                    </div>
	                    <div class="form-group"><label class="col-sm-3 control-label">处理时间<span class="check-tips">（输入处理时间）</span></label>
	                    	<div class="col-sm-9">
		                        <div class="input-group date">
	                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
	                                <input id="appointtime" name="appointtime" value="{$data.appointtime}" class="form-control" required="" type="text" >
	                            </div>
                            </div>
	                    </div>

						<input type="hidden" name="id" value="{$data.id}"/>
	                </form>
	            </div>
	        </div>
	    </div>
	</div> 
</block>
<block name="script">
<script type="text/javascript">
 
    $('.date').datepicker({});
    </script>
</block>
